import { createRouter, createWebHistory } from 'vue-router'
import vue3ChildApp from '@/views/child/vue3ChildApp.vue'
import nuxtChildApp from '@/views/child/nuxtChildApp.vue'
import home from '@/views/main/index.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: home,
    },
    {
      path: '/vue3App',
      name: 'vue3App',
      component: vue3ChildApp,
    },
    {
      path: '/nuxtApp',
      name: 'nuxtApp',
      component: nuxtChildApp,
    },
  ],
})

export default router
